/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    font-size: 14px;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #c00000;
}

ul {
    list-style: none;
}

h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 3px solid #c00000;
}


/* 顶部导航区 */
.site-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
}

.brand-text h1 {
    font-size: 22px;
    color: #c00000;
    font-weight: bold;
}

.brand-text p {
    font-size: 12px;
    color: #666;
}

.user-nav {
    display: flex;
    justify-content: flex-end;
}

.user-nav ul {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-nav i {
    margin-right: 5px;
    font-size: 14px;
}

.english-btn {
    background-color: #c00000;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}


/* 主导航栏 */
.main-nav {
    background-color: #c00000;
}

.nav-list {
    display: flex;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
}

.nav-list li.active a,
.nav-list a:hover {
    background-color: #a00000;
}


/* 轮播图区域 */
.banner {
    background-color: #fff;
    padding: 15px 0;
}

.banner-slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.photographer {
    display: block;
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}


/* 核心内容区 */
.site-main {
    padding: 20px 0;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

/* 左侧图片新闻 */
.left-sidebar {
    width: 25%;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.image-news img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #c00000;
}


/* 中间江理新闻 */
.content-center {
    width: 50%;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tab-nav {
    display: flex;
    gap: 15px;
}

.tab-nav a {
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.tab-nav a.active {
    color: #c00000;
    border-bottom: 2px solid #c00000;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.read-more {
    color: #c00000;
    font-size: 13px;
}

.news-date {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}


/* 右侧学校公告 */
.right-sidebar {
    width: 25%;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.more-btn {
    float: right;
    font-size: 12px;
    color: #666;
}

.notice-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-list li:last-child {
    border-bottom: none;
}


/* 页脚 */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
}


/* 响应式适配（平板） */
@media (max-width: 992px) {
    .content-wrapper {
        flex-wrap: wrap;
    }
    .left-sidebar, .right-sidebar {
        width: 30%;
    }
    .content-center {
        width: 70%;
    }
}

/* 响应式适配（手机） */
@media (max-width: 768px) {
    .user-nav {
        display: none;
    }
    .nav-list {
        flex-wrap: wrap;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .left-sidebar, .content-center, .right-sidebar {
        width: 100%;
    }
}